<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<input type="checkbox" id="test"  name="xfz" />
		<input type="button"  id="btn" value="test" />
	</body>
	<script type="text/javascript">
	
		/*
		 	浏览器认谁？  property
		*/
		var testNode  =document.querySelector("#test");
		btn.onclick=function(){
			debugger
			test.checked=true;
		}
		
			
	</script>
</html>
